package com.lovo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lovo.bean.Ordergoods;
import com.lovo.mapper.OrdergoodsMapper;
import com.lovo.service.IOrdergoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lovo
 * @since 2022-09-22
 */
@Service
public class OrdergoodsServiceImpl extends ServiceImpl<OrdergoodsMapper, Ordergoods> implements IOrdergoodsService {




    @Override
    public List<Ordergoods> findGoodsList(Integer orderId) {
        QueryWrapper<Ordergoods> qw = new QueryWrapper<>();
        qw.eq("orderId",orderId);
        return baseMapper.selectList(qw);
    }


}
